package com.SouthernWall_404.age_tool.common.world.Inventory;

import com.SouthernWall_404.age_tool.common.init.ModMenuType;
import net.minecraft.core.BlockPos;
import net.minecraft.world.Container;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.inventory.AbstractContainerMenu;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.block.entity.BlockEntity;

import java.util.ArrayList;
import java.util.List;

public class MusicBlockMenu extends AbstractContainerMenu {


    private BlockEntity blockEntity;
    private Container playerInv;

    public MusicBlockMenu(int containerId, Inventory playerInv, BlockPos blockPos) {
        super(ModMenuType.MUSIC_BLOCK_MENU.get(), containerId);
        this.playerInv=playerInv;
        this.blockEntity=playerInv.player.level().getBlockEntity(blockPos);

    }


    public BlockEntity getBlockEntity()
    {
        return this.blockEntity;
    }

    @Override
    public ItemStack quickMoveStack(Player player, int i) {
        return null;
    }

    @Override
    public void slotsChanged(Container p_38868_) {
        super.slotsChanged(p_38868_);
    }

    @Override
    public boolean stillValid(Player player) {
        return player.isAlive();
    }
}
